﻿@model MvcApplication4.Models.Thread

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Thread</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.User.UserName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.User.UserName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Time)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Time)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Category1.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Category1.Title)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ThreadId }) |
    @Html.ActionLink("Back to List", "Index")
    @Html.ActionLink("Back to Category", "ReturnToCategory", new { id = Model.Category })
</p>

<section id="Post_Background">
                    @{Html.RenderAction("ContainedPosts", "Thread", new { id = Model.ThreadId});}
</section>